{% extends "base.html" %}

{% block sidebar %}
	{% if logged %}
	logged
	{% else %}
	<h2>Not logged-in</h2>
	<a href="{{ login_logout_url }}">Login</a>
	{% endif %}
{% endblock sidebar %}

{% block content %}
    <h1>Search</h1>
    <form>
      <fieldset>
        <label for="normalText">Query</label>
        <input type="text" value="" name="q" id="q" class="width_3" placeholder="Search query" autofocus />
        <!-- placeholder text is text that stays in the input field until clicked, autofocus will select that element on the page -->
        <div class="clear"></div>
        <button class="submit">submit &raquo;</button>
      </fieldset>
    </form>
    <h1>Results</h1>
    {{ result }}
{% endblock %}